<style type="text/css">
    .settle_list li {height:25px;display:block;}
    .settle_list li b, .settle_list li em, .settle_list li ins{font-weight: normal;width:60px;float:left;display:block;font-style: normal;text-decoration: none;}
    .settle_list li b{text-align: center;}
    .settle_list li em{width:280px;}
    .settle_list li ins{width:80px;text-align: center;}
</style>
<div class="col_box">
    <div class="col_two clear">
        <!--支出-->
        <div class="m_hide" id="m_expense" style="display:block;margin-bottom: 15px;">
            <form class="validform" method="post" action="/bill/settle/<?= $show['id'] ?>/">
                <dl><dt>记录：</dt><dd><?= $show['memo'] ?></dd></dl>
                <dl><dt>未结清：</dt><dd style="color:#EC4F4F"><?= $show['outstanding'] ?></dd></dl>
                <dl><dt>时间：</dt><dd></dd><?= date("Y-m-d H:i:s", $show['occurtime']) ?></dl>
                <dl><dt>账户：</dt>
                    <dd>
                        <select name="row[account_id]" id="account_id_expense" class="select" disabled datatype="*" nullmsg="请选择账户">
                            <?= get_account_option(null); ?>
                        </select>
                    </dd></dl>
                <dl><dt>金额：</dt><dd><?= $show['amount'] ?></dd></dl>
                <dl><dt>记录：</dt><dd>
                        <ul class="settle_list">
                            <li><b>类型</b><em>说明</em><b>金额</b><b>账户</b><ins>时间</ins></li>
                            <?php foreach ($show['list'] as $m => $n) { ?>
                                <?php
                                $account = get_account($n['account_id']) ? : array('id' => 0, 'name' => '未知');
                                ?>
                                <li><b><?= $n['category_id'] == 3 ? '还入' : '还出' ?></b><em><?= $n['memo'] ?></em><b><?= $n['amount'] ?></b><b><?= $account['name'] ?></b><ins><?= date("Y-m-d", $n['createtime']) ?></ins></li>
                            <?php } ?>
                        </ul>
                    </dd></dl>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    KS.common.load('bill.settle');
</script>
